package com.example.pagehelper.service.serviceimpl;

import com.example.pagehelper.bean.User;
import com.example.pagehelper.dao.UserMapper;
import com.example.pagehelper.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> queryUserByName(String user) {
        return userMapper.queryUserByName(user);
    }

    @Override
    public List<User> queryAllUser() {
        return userMapper.queryAllUser();
    }
}
